home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-04-12 | 1.3 KB | 50 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="2"
- "COUNT"="1"
- "UIPATH"="Hardware\System Settings"
- "NAME"="Computer Role"
- "OSVERSION"="101111"
- "VERSION"="1.08"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Computer's Role"
- "DESCRIPTION 1"="Specify the typical role of your Computer:"
- "DESCRIPTION 2"="Enter 0 for Home/Office Desk."
- "DESCRIPTION 3"="Enter 1 for Portable/Laptop."
- "DESCRIPTION 4"="Enter 2 for Presentation. (Win2000 Only) "
- "DESCRIPTION 5"="Enter 3 for Always On."
- "DESCRIPTION 6"="Enter 4 for Minimal Power Management. (Win2000 Only)"
- "DESCRIPTION 7"="Enter 5 for Maximum Battery. (Win2000 Only)"
- "AUTHOR"="Ojatex@aol.com"
- "CONTACTURL"="http://members.aol.com/ojatex/"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
- "COMMENT 2"="Portables are still #1 ;)"
-
- sP="HKCU\Control Panel\PowerCfg\CurrentPowerPolicy"
-
- 'Called when the Plugin is started
-
-
- Sub Plugin_Initialize
- i=RegReadValue(sP)
- Call SetUIElement(1,i)
- End Sub
-
- 'Called when the Plugin should validate the Data the user has entered
- SUB Plugin_CheckData(ElementIndex)
- END SUB
-
- 'Called when the Plugin should apply the changes
- SUB Plugin_Apply(ElementIndex,ElementSubIndex)
- i=GetUIElement(1)
-
- Call RegWriteValue(sP,i,1)
-
-
- END SUB
-
- SUB Plugin_Terminate
-
- END SUB
-
-